//
//  LSZSpecialPackaging.h
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/19.
//  Copyright © 2017年 LC. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <ShareSDK/ShareSDK.h>
@interface LSZSpecialPackaging : NSObject
typedef void (^strNetwork)(NSString *);
typedef void (^AlterView)(UIView *,UIView *,UIButton *, UIButton *,UIButton *, UIButton *);
typedef void (^strPinglLun)(UIView *,UITextView *,UILabel *,UIButton * ,UIImageView *);
typedef void (^isOk)(BOOL);

#pragma mark - 在view上 任意话一条线自定义颜色
+(id)addThreadWithOtherRGB:(UIView *)view A:(NSInteger)A B:(NSInteger)B C:(NSInteger)C D:(NSInteger)D R:(NSInteger)R G:(NSInteger)G BB:(NSInteger)BB;
#pragma mark - 时间戳的转换
+(NSString *)TimeStamp:(NSString *)strTime;
#pragma mark - 获取当前月
+(NSString *)GetTheCurrentMonth;
#pragma mark - 获取当前时间
+(NSString *)GetTheCurrentMonthDay;
#pragma mark - 获取之前的时间和现在的比
+(NSString *)GetThePreviousTimeAndCompareItNow :(NSString *)GetTime;
//数据解析的地方用的
+(NSString *)addPlaylistWithArrayData:(NSArray *)arrayData;
+ (NSString *)addPlaylistWithArrayData:(NSArray *)arrayData image:(NSString *)image;

+(void)shareShengJingMessageWithViewController:(UIViewController *)viewController
                                    imageArray:(NSArray *)imageArray
                                           url:(NSString *)url
                                         title:(NSString *)title
                                contentMessage:(NSString *)messageBody
                                          type:(SSDKContentType)type;

+(void)shareWXWithViewController:(UIViewController *)viewController
                                    imageArray:(NSArray *)imageArray
                                           url:(NSString *)url
                                         title:(NSString *)title
                                contentMessage:(NSString *)messageBody
                                          type:(int)type;

+ (BOOL)isValidateMobile:(NSString *)mobile;

+ (void)Reachability :(strNetwork)block;
#pragma mark - 分享
+(void)initAlterView :(UIView *)view :(AlterView)block;
///删除UIWebView 中的缓存
+ (void)clearUIWebViewCacheForLink:(NSString *)link;
///删除UIWebView 中All的缓存
+ (void)clearUIWebViewAllCache;
///清除cookies
+ (void)clearCookies;
#pragma mark - 获取自适应宽度
+(CGFloat)getsTheAdaptiveWidth:(UILabel *)label sizeMaxWidth:(CGFloat)sizeMaxWidth;
+(CGFloat)caculateWidthOfText :(CGFloat)width height:(CGFloat)height font:(CGFloat)font :(NSString * )text;
+(CGFloat)caculateHeightOfText :(CGFloat)width height:(CGFloat)height font:(CGFloat)font :(NSString * )text;
#pragma mark - 祷告浏览数增加
+(void)addPrayerNumber:(NSString *)id_id :(isOk)block;
+(void)initWithAppraise  :(UIView *)view  share:(NSInteger)share :(strPinglLun)block;//1有分享  其他没分享
#pragma mark - 时间除1000
+(NSString *)GetThePreviousTime1970:(NSString *)GetTime;
#pragma mark - 时间不除1000
+(NSString *)GetThePreviousTime :(NSString *)GetTime;
///设置自适应文字大小
+ (UIFont *)setlabelTextFontAdaptiveSize:(CGFloat)size;
+ (UILabel *)setLabel_14_5_Size:(UILabel *)label;
#pragma mark - 对非纯数字的字符串进行邮箱判别
+(BOOL)MailboxDiscriminationForStringsThatAreNotPureNumbers :(NSString *)str;
#pragma mark - label自适应高度
+(CGFloat)labelAdaptiveAltitude:(CGFloat)width height:(CGFloat)height label:(UILabel *)label;
+(UILabel *)setAnySizeLabel :(UILabel *)label :(CGFloat)font;//任意大小
#pragma mark - label 字体大小 font中间大小
+ (void)setLabelAdaptiveSize:(UILabel *)label font:(CGFloat)font;
#pragma mark - 返回不一样的大小
+(CGFloat)initWithReturnsthesizeOf:(CGFloat)font :(CGFloat)poor;
#pragma mark - 自适应宽度
+(void)adaptiveWidth :(UILabel *)label str:(NSString *)str sizeMaxWidth:(CGFloat)sizeMaxWidth  sizeMaxHeight:(CGFloat)sizeMaxHeight;
#pragma mark - 专辑的浏览次数  转千  转万  保留2位小数
+(NSString *)theNumberViewsForTheAlbumAhanges :(NSString *)number;

#pragma mark - 浏览量
+(void)increaseTheNumberOfViews:(NSString *)id_id :(isOk)block;
#pragma mark -记录视频的浏览记录
+(NSString *)recordTheBrowsingHistoryVideo;
#pragma mark - 删除所有的缓存Documents
+(void)deleteAllCache;
#pragma mark- 保存已下载视频的名字
+(NSString *)saveTheNameOfVideo;
#pragma mark - 下载视频
+(NSString *)DownloadTheVideo :(NSString *)path;
#pragma mark - 清除一些特定后缀的缓存
+(void)clearCacheSpecificSuffixes :(NSString *)str;
#pragma mark - 删除一些特定名字文件夹
+(void)deleteSomeSpecificFolders :(NSString *)strName;
 
@end
